package com.pagoda.nerp.trade.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.util.Date;
@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
public class SysBillRule {
    /**
     * 系统规则ID
     *
     * @mbg.generated
     */
    private Integer billId;

    /**
     * 单据类型编码
     *
     * @mbg.generated
     */
    private String billCode;

    /**
     * 助记码
     *
     * @mbg.generated
     */
    private String mnemonic;

    /**
     * 单据名称
     *
     * @mbg.generated
     */
    private String billName;

    /**
     * 单据类型描述
     *
     * @mbg.generated
     */
    private String billDesc;

    /**
     * 单据当前Id值，每次获取后自动加1
     *
     * @mbg.generated
     */
    private Integer sysId;

    /**
     * 单据Id类型：1-自动增长id；2-固定长度的id字符串，前面补0；3-带前缀的按日期+固定长度id，id长度前补0，id每日从0开始
     *
     * @mbg.generated
     */
    private Integer getBillType;

    /**
     * 编码前缀
     *
     * @mbg.generated
     */
    private String prefixCode;

    /**
     * 编码id增长间隔，默认为1
     *
     * @mbg.generated
     */
    private Integer intervalValue;

    /**
     * id编码长度
     *
     * @mbg.generated
     */
    private Integer codeLenth;

    /**
     * 最后单据日期，获取后写入当期时间
     *
     * @mbg.generated
     */
    private Date lastBillDate;

    /**
     * 最后单据编码，如果getBillType=2，3时，获取后写入
     *
     * @mbg.generated
     */
    private String lastCode;

    /**
     * 创建人
     *
     * @mbg.generated
     */
    private String createUser;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 修改人
     *
     * @mbg.generated
     */
    private String modifyUser;

    /**
     * 修改时间
     *
     * @mbg.generated
     */
    private Date modifyTime;

    public Integer getBillId() {
        return billId;
    }

    public void setBillId(Integer billId) {
        this.billId = billId;
    }

    public String getBillCode() {
        return billCode;
    }

    public void setBillCode(String billCode) {
        this.billCode = billCode == null ? null : billCode.trim();
    }

    public String getMnemonic() {
        return mnemonic;
    }

    public void setMnemonic(String mnemonic) {
        this.mnemonic = mnemonic == null ? null : mnemonic.trim();
    }

    public String getBillName() {
        return billName;
    }

    public void setBillName(String billName) {
        this.billName = billName == null ? null : billName.trim();
    }

    public String getBillDesc() {
        return billDesc;
    }

    public void setBillDesc(String billDesc) {
        this.billDesc = billDesc == null ? null : billDesc.trim();
    }

    public Integer getSysId() {
        return sysId;
    }

    public void setSysId(Integer sysId) {
        this.sysId = sysId;
    }

    public Integer getGetBillType() {
        return getBillType;
    }

    public void setGetBillType(Integer getBillType) {
        this.getBillType = getBillType;
    }

    public String getPrefixCode() {
        return prefixCode;
    }

    public void setPrefixCode(String prefixCode) {
        this.prefixCode = prefixCode == null ? null : prefixCode.trim();
    }

    public Integer getIntervalValue() {
        return intervalValue;
    }

    public void setIntervalValue(Integer intervalValue) {
        this.intervalValue = intervalValue;
    }

    public Integer getCodeLenth() {
        return codeLenth;
    }

    public void setCodeLenth(Integer codeLenth) {
        this.codeLenth = codeLenth;
    }

    public Date getLastBillDate() {
        return lastBillDate;
    }

    public void setLastBillDate(Date lastBillDate) {
        this.lastBillDate = lastBillDate;
    }

    public String getLastCode() {
        return lastCode;
    }

    public void setLastCode(String lastCode) {
        this.lastCode = lastCode == null ? null : lastCode.trim();
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getModifyUser() {
        return modifyUser;
    }

    public void setModifyUser(String modifyUser) {
        this.modifyUser = modifyUser == null ? null : modifyUser.trim();
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }
}